package com.xhermit.learn.footprint.spring.aop;

import org.junit.BeforeClass;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @version 3.0
 * @author FangJun
 * @date 2017年2月24日
 */
public class LogAspectTest {
	private static ApplicationContext ctx;
	
	@BeforeClass
	public static void setup() {
		ctx = new ClassPathXmlApplicationContext("spring-context.xml");
	}
	
	@Test
	public void  testPrint(){
		SayHelloService helloService=ctx.getBean(SayHelloService.class);
	    helloService.say();
	}
	
}
